package com.heima.es.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.es.pojo.Sku;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SkuMapper extends BaseMapper<Sku> {
    @Select("SELECT * FROM `tb_sku` WHERE id=100000003145")
    Sku test();

    @Select("SELECT id,name,price,num,image,create_time,category_id,category_name,brand_name FROM tb_sku")
    List<Sku> findAll();
}
